﻿html {
    height: 100%;
}
body {
    margin: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#ground {
    border: 3px saddlebrown groove;
    background-image: url(ground.jpg);
    background-size: cover;
}

#control {
    width: 500px;
    height: 300px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-weight: bolder;
    font-size: xxx-large;
    color: #fff186;
    text-align: center;
    text-shadow: #d28f28 2px 2px 10px;
    background-color: rgba(237, 237, 227, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.btn {
    width: 120px;
    height: 40px;
    background-color: #efe7dd;
    color: #953712;
    border: #b78f70 2px groove;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: lightgoldenrodyellow 1px 1px 10px;
}
.btn:hover {
    background-color: #f9d56b;
}
.btn span {
    text-align: center;
    font-weight: bold;
    font-size: large;
    text-shadow: none;
}

.popup {
    margin: 0;
    padding: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.popup::backdrop {
    background-color: rgba(0,0,0,0.2);
}

#dial {
    width: 500px;
    height: 250px;
    background-color: #F07575; /* 不支持渐变的浏览器回退方案 */
    background-image: linear-gradient(to left bottom, hsl(0, 80%, 70%), #bada55);
}
#dial form {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
}
#dial form p {
    margin: 0;
    font-size: 40px;
    font-weight: bolder;
    color: #953712;
    text-shadow: #fff186 2px 2px 2px, white -2px -2px 2px;
}
#uname {
    width: 320px;
    line-height: 35px;
    font-size: large;
    text-align: center;
    background-color: lightcyan;
    outline: none;
}
#dial-btn-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

#rankings {
    width: 500px;
    height: 300px;
    background-color: #fd9b11; /* 不支持渐变的浏览器回退方案 */
    background-image: linear-gradient(to right bottom, #fd9b11, #ffca51, #fef659);
}
#rankings p {
    margin: 10px 0 0 0;
    font-weight: bolder;
    font-size: xxx-large;
    color: #fff186;
    text-align: center;
    text-shadow: #d28f28 2px 2px 10px;
}

#records {
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    overflow: auto;
}
.record-item {
    width: 100%;
    background-image: linear-gradient(to left top, #fd9b11, #ffca51, #fef659);
    display: flex;
    align-items: center;
    justify-content: space-around;
    font-weight: bold;
    font-size: large;
    color: #953712;
    text-align: center;
}
.record-item div {
    flex: 1
}

.close-icon {
    outline: none;
    cursor: pointer;
    width: 45px;
    height: 45px;
    position: absolute;
    right: 15px;
    top: 15px;
    border-color: transparent;
    border-radius: 50%;
    background-color: transparent;
    transition: background-color 0.5s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.close-icon span {
    font-size: 50px;
    font-weight: bold;
    color: white;
}
.close-icon:hover {
    background-color: orangered;
}